/*
 * @Description: 移动平台中启动URL的Flutter插件 
 * @version: 
 * @Company: 
 * @Author: ZhengZhuang
 * @Date: 2019-08-31 09:55:04
 * @LastEditors: ZhengZhuang
 * @LastEditTime: 2019-09-03 11:36:28
 */
import 'package:url_launcher/url_launcher.dart';

/// 拨打电话号码
Future callPhone(number) async {
  if (await canLaunch('tel:$number')) {
    await launch('tel:$number');
  } else {
    throw 'Could not launch $number';
  }
}
